<%@ page import="ihotel.Hospedagem" %>



<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'numeroQuarto', 'error')} required">
	<label for="numeroQuarto">
		<g:message code="hospedagem.numeroQuarto.label" default="Numero Quarto" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="numeroQuarto" type="number" value="${hospedagemInstance.numeroQuarto}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'dataCheckout', 'error')} required">
	<label for="dataCheckout">
		<g:message code="hospedagem.dataCheckout.label" default="Data Checkout" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataCheckout" precision="day"  value="${hospedagemInstance?.dataCheckout}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'dataCheckin', 'error')} required">
	<label for="dataCheckin">
		<g:message code="hospedagem.dataCheckin.label" default="Data Checkin" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataCheckin" precision="day"  value="${hospedagemInstance?.dataCheckin}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'totalDiaria', 'error')} required">
	<label for="totalDiaria">
		<g:message code="hospedagem.totalDiaria.label" default="Total Diaria" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="totalDiaria" type="number" value="${hospedagemInstance.totalDiaria}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'valorDiaria', 'error')} required">
	<label for="valorDiaria">
		<g:message code="hospedagem.valorDiaria.label" default="Valor Diaria" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="valorDiaria" value="${fieldValue(bean: hospedagemInstance, field: 'valorDiaria')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'totalPagar', 'error')} required">
	<label for="totalPagar">
		<g:message code="hospedagem.totalPagar.label" default="Total Pagar" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="totalPagar" value="${fieldValue(bean: hospedagemInstance, field: 'totalPagar')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedagemInstance, field: 'hospede', 'error')} required">
	<label for="hospede">
		<g:message code="hospedagem.hospede.label" default="Hospede" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="hospede" name="hospede.id" from="${ihotel.Hospede.list()}" optionKey="id" optionValue="nome" required="" value="${hospedagemInstance?.hospede?.id}" class="many-to-one"/>
</div>

